![]() |
PBGetWDInfoSync |
||||
Header: | Files.h | Carbon status: | Unsupported | |
Gets information about a working directory.
OSErr PBGetWDInfoSync ( WDPBPtr paramBlock );
A pointer to a working directory parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion function.
On output, the result code of the function.
On output, a pointer to the volume’s name. You should pass a pointer to a Str31 value if you want that name returned. If you pass NULL, no volume name is returned.
A volume specification. The ioVRefNum field contains a working directory reference number when a working directory reference number is passed in that field; otherwise, it returns a volume reference number.
On input, an index.
The working directory user identifier.
On return, the volume reference number for the working directory. The ioWDVRefNum field always returns the volume reference number.
On output, the working directory’s directory ID.
The working directory can be specified either by its working directory reference number in ioVRefNum (in which case the value of ioWDIndex should be 0), or by its index number in ioWDIndex. In the latter case, if the value of ioVRefNum is not 0, it’s interpreted as a volume specification, and only working directories on that volume are indexed.
Not supported in Carbon. Not available in Carbon.
Working directories not supported. Use file system specification (FSSpec) records instead.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)